﻿<!-- 
This resource dictionary is used by the MainWindow. 
-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="clr-namespace:DemoApp.CustomerModule.ViewModel"
    xmlns:vw="clr-namespace:DemoApp.CustomerModule.View" >

    <!-- 
    This template applies an AllCustomersView to an instance 
    of the AllCustomersViewModel class shown in the main window.
    -->
    <DataTemplate DataType="{x:Type vm:AllCustomersViewModel}">
        <vw:AllCustomersView />
    </DataTemplate>

    <!-- 
    This template applies a CustomerView to an instance  
    of the CustomerViewModel class shown in the main window.
    -->
    <DataTemplate DataType="{x:Type vm:CustomerViewModel}">
        <vw:CustomerView />
    </DataTemplate>

    <!-- 
    This template applies a ViewAllCustomersView to an instance  
    of the ViewAllCustomersViewModel class shown in the main window.
    -->
    <DataTemplate DataType="{x:Type vm:ViewAllCustomersViewModel}">
        <vw:ViewAllCustomersView />
    </DataTemplate>

    <!-- 
    This template applies a CreateNewCustomerView to an instance  
    of the CreateNewCustomerViewModel class shown in the main window.
    -->
    <DataTemplate DataType="{x:Type vm:CreateNewCustomerViewModel}">
        <vw:CreateNewCustomerView />
    </DataTemplate>
    
</ResourceDictionary>